<?php

use App\Admin\Service\Base\RolePermissionsService;
use App\Common\Model\Base\Role;
use App\Common\Util\AdminAuth;
use Sc\Util\HtmlStructure\Html\Html;

Html::create("首页");

$rolePermissionsService = RolePermissionsService::aop(false);
$rolePermissionsService->init();
halt($rolePermissionsService->getRouteIdsByRoleIds(AdminAuth::getInfo()->role_ids));

return "hello, " . AdminAuth::getInfo()->name ?? 'Thinkphp';